<?php
declare (strict_types = 1);

namespace app\middleware\admin;

class CheckPermission
{

    //权限验证忽略的接口
    protected $check_ignore_list = [

    ];
    /**
     * 处理请求
     *
     * @param \think\Request $request
     * @param \Closure       $next
     * @return Response
     */
    public function handle($request, \Closure $next)
    {
        //
        $route = $request->pathinfo();
        if(!in_array($route, $this->check_ignore_list)){
            //todo 权限验证



        }
        return $next($request);

    }
}
